<template>
  <div>
    <LineChart :chartData="chartData"></LineChart>
  </div>
</template>

<script>
import LineChart from "@/views/dashboard/LineChart.vue";
import request from "@/utils/request";

export default {
  name: "Pmember",
  data() {
    return {
      chartData: {},
    };
  },
  components: {
    LineChart,
  },
  created() {
    this.getMembers();
  },
  methods: {
    getMembers() {
      request.get("/api/report/getMemberReport").then((res) => {
        if (res.code == 200) {
          this.chartData = res.data;
        }
      });
    },
  },
};
</script>

<style>
</style>